package models;
import java.util.*;

import javax.persistence.*;

import org.joda.time.DateTime;

import play.data.validation.Required;
import play.db.jpa.*;
 
@Entity
public class Manoeuvre extends Model
{
	@Required
	@ManyToOne
	public Bateau bateau;
	
	@Required
	public Date date_execution;
	public float cap_bateau;
	public float inclinaison_foc;
	public float inclinaison_grand_voile;
	public int etat_manoeuvre;
	
	public Manoeuvre(Bateau bateau, Date date_execution,
			float cap_bateau, float inclinaison_foc,
			float inclinaison_grand_voile, int etat_manoeuvre) 
	{
		this.bateau = bateau;
		this.date_execution = date_execution;
		this.cap_bateau = cap_bateau;
		this.inclinaison_foc = inclinaison_foc;
		this.inclinaison_grand_voile = inclinaison_grand_voile;
		this.etat_manoeuvre = etat_manoeuvre;
	}
	
	
}
